﻿<?php

function __autoload($class_name) {
    $aClasses = array(
        "bpUser" => "bpUser",
    );
    require_once 'class/'.$aClasses[$class_name].'.class.php';
}

$aJsMap = array(
    "beer" => "voating",
);

define("FUNCTION_PATH", "functions/");
define("HOST", "localhost");
define("USER", "root");
define("PASS", "admin");
define("DATABASE", "beerpub");

define("DOMAIN_NAME", "http://beerpub/");

define("IMAGE_ALT", "Beer Pub - для любителей пива");
define("PATH_TO_IMAGES_AVATAR", "/images/avatar");
define("PATH_TO_IMAGES_BEER_FIRM", "/images/beer/firm/");
define("PATH_TO_IMAGES_BEER_BEER", "/images/beer/beer/");

require_once("modules/smarty/Smarty.class.php");

require_once("include/lang/lang_ru.php");
require_once("db_mysql.func.php");
database_connect(HOST, USER, PASS, DATABASE);

require_once("class/bpUser.class.php");
require_once("class/bpVote.class.php");

$smarty= new Smarty();
$smarty->cache_dir="templates";
$smarty->compile_dir="templates_c/";
$smarty->template_dir="templates";



$smarty->assign("lang", $lang);
$smarty->assign("image_alt", IMAGE_ALT);

?>